/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cp2004_assignment2;

import java.util.ArrayList;

/**
 *
 * @author zhaoyingxi JCU Student Number: 11839209
 */
public class ItemArray {

    private ArrayList<Item> arr;

    public void add(Item k) {
        arr.add(k);
    }

    @Override
    public String toString() {  //toString()function
        String s = "";
        int i;
        for (i = 0; i < arr.size(); i++) {
            s = s + arr.get(i);
        }
        return s;
    }

    ItemArray() {
        arr = new ArrayList<Item>();

    }
}
